
module.exports = app => {
  const { router, controller } = app;
  //登录
  router.post('/api/login', controller.home.login);
  //获取后端数据
  router.post('/api/getList', controller.home.getList);
  //消息列表数据
  router.post('/api/addlist', controller.home.addlist);
  //求租 求购数据
  router.post("/api/renting",controller.home.renting);
  //筛选
  router.post('/api/screening3', controller.home.screening3);
  router.post('/api/screening4', controller.home.screening4);
  router.post('/api/screening1', controller.home.screening1);
  //详情
  router.post("/api/detail", controller.home.detail);
  //删除
  router.post('/api/delList', controller.home.delList)
  //求租、求购筛选
  router.post('/api/screening5', controller.home.screening5);
  router.post('/api/screening6', controller.home.screening6);
// //排行榜
// router.post('/api/search1', controller.home.search1);
  //排行榜详情
  router.post("/api/paidetail", controller.home.paidetail);
};
